package com.kim.useroauth.server.client;

import com.kim.common.utilcom.model.Result;
import com.kim.useroauth.common.dto.ReqUserInfoInitializeDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * 用户信息远程调用
 */
@FeignClient(value = "user-info-service")
public interface UserInfoClient {

    /**
     * 初始化用户账户
     *
     * @param reqUserInfoInitializeDTO 初始化用户账户DTO
     */
    @RequestMapping(value = "/api/v1/userinfo/unAuthenticated/initialize", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    Result initializeUserInfo(@RequestBody ReqUserInfoInitializeDTO reqUserInfoInitializeDTO);

}

